package en.edu.scau.cmi.zhanzhiyong.carpter11;

import javax.swing.*;
import java.awt.event.InputEvent;
import java.awt.event.KeyEvent;
import static javax.swing.JFrame.*;

public class WindowMenu extends JFrame{
	
	JMenuBar menubar;
	JMenu menu,subMenu;
	JMenuItem item1, item2;
	
	public WindowMenu() {}
	public WindowMenu(String s,int x,int y,int w,int h) {
		
		init(s);
		setLocation(x, y);
		setSize(w, h);
		setVisible(true);
		setDefaultCloseOperation(DISPOSE_ON_CLOSE);
			
		}
	void init(String s) {
		setTitle(s);
	}
}
